package com.icode.syn.ticketSale;

/**
 * @Author: my_code
 * @Create: 2020-12-09 17:40
 */
public class TicketSale {
    public static void main(String[] args) {
        Ticket ticket = new Ticket();

        new Thread(() -> {for (int i = 0; i < 30; i++) ticket.sale();},"A").start();
        new Thread(() -> {for (int i = 0; i < 30; i++) ticket.sale();},"B").start();
        new Thread(() -> {for (int i = 0; i < 30; i++) ticket.sale();},"C").start();

    }
}
